<?php if ($this->previewMode): ?>

    <div class="form-control">
        <?= $value ?>
    </div>

<?php else: ?>
<input type="text" name="Film[title]" id="Form-field-Film-title" value="<?= $value ?>" placeholder="请输入电影标题" class="form-control" autocomplete="off" maxlength="255">
<button type="button" data-request="onGather" data-request-success="
    <!-- console.log(data[0]) -->
    $('#Form-field-Film-title').attr('value',data[0]['title'])
    $('#Form-field-Film-title').text(data[0]['title'])

    "
   class="btn btn-primary" data-disposable="">采集</button>

<!-- <div id="result">  <?= $this->makePartial('gatherdetials') ?></div> -->
<?php endif ?>
